﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace THEMXOASUA
{
    class USERSDAL
    {
        public  DataTable DANHSACH_USERS(string users,string pass)
        {
            SqlConnection conn = SQLDATABASE.Connection; 
            conn.Open();
            SqlCommand cmd = new SqlCommand("select * from admin where users='" + users + "' and pass='" + pass + "'", conn);
            SqlDataReader dr = cmd.ExecuteReader();
            DataTable dt = new DataTable();
            dt.Load(dr);
            return dt;

        }
    }
}
